package com.example.demo.model;

import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

@Data
public class AuctionInfo {
    private Long id;
    private Long productId;
    private BigDecimal startPrice;
    private BigDecimal currentPrice;
    private BigDecimal minIncrement;
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "GMT+8")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "GMT+8")
    private Date endTime;
    private Integer status;
    private Long winnerId;
    private Date createTime;
    private Date updateTime;
    
    // 商品信息
    private String productName;
    private String productImage;  // 图片JSON字符串
    private String productDescription;
    private String brand;
    private String location;
    private BigDecimal originalPrice;
    
    // 用户信息
    private String sellerName;
    private String sellerId;
    private String winnerName;
    private String sellerAvatar;
    private String sellerCreditScore;
    
    // 统计信息
    private Integer bidCount;

}